package com.jyxd.web.data.czform;


import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * CRRT前评估信息表
 */
@Entity
@Table(name = "table_crrt_assess")
@Data
public class CRRTAssess implements Serializable {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    /**
     * 患者id
     */
    @Column(name = "patient_id")
    private String patientId;

    /**
     * 第几次治疗
     */
    @Column(name = "sort")
    private int sort;

    /**
     * 治疗日期
     */
    @Column(name = "cure_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date cureDate;

    /**
     * 机器型号
     */
    @Column(name = "machine_model")
    private String machineModel;

    /**
     * 置管部位
     */
    @Column(name = "cathetering_part")
    private String catheteringPart;

    /**
     * 血液滤过器
     */
    @Column(name = "hemofilter")
    private String hemofilter;

    /**
     * 神志
     */
    @Column(name = "mind")
    private String mind;

    /**
     * 收缩压
     */
    @Column(name = "systolic_pressure")
    private String systolicPressure;

    /**
     * 舒张压
     */
    @Column(name = "diastolic_pressure")
    private String diastolicPressure;

    /**
     * 心率
     */
    @Column(name = "heart_rate")
    private String heartRate;

    /**
     * 呼吸
     */
    @Column(name = "breathe")
    private String breathe ;

    /**
     * SPO2
     */
    @Column(name = "spo2")
    private String spo2;

    /**
     * 透析液速度
     */
    @Column(name = "dialyzate_velocity")
    private String dialyzateVelocity ;

    /**
     * 前置换速度
     */
    @Column(name = "before_replacement_velocity")
    private String beforeReplacementVelocity ;

    /**
     * 后置换速度
     */
    @Column(name = "after_replacement_velocity")
    private String afterReplacementVelocity ;

    /**
     * 置换液补充后
     */
    @Column(name = "liquid_replenish")
    private String liquidReplenish ;

    /**
     * 开机时间
     */
    @Column(name = "start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 关机时间
     */
    @Column(name = "close_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date closeTime;

    /**
     * 上机护士
     */
    @Column(name = "up_nurse")
    private String upNurse ;

    /**
     * 下机护士
     */
    @Column(name = "down_nurse")
    private String downNurse ;

    /**
     * 状态(0：禁用 1：启用 -1：删除)
     */
    @Column(name = "status")
    private Integer status;


    @Transient
    private List<CRRTCure> crrtCureList ;

    @Transient
    private List<CRRTNurse> crrtNurseList ;

}
